<template>
  <div @click="fatherFn">
    <button @click.stop="sunFn">儿子阻止冒泡</button>
    <a @click.prevent href="http://www.yjwujian.cn/">阻止不去永劫无间</a>
  </div>
</template>

<script>
export default {
  name: 'Homework2App',

  data() {
    return {
      
    };
  },

  mounted() {
    
  },

  methods: {
    fatherFn(){
      console.log('父亲被点了');
    },
    sunFn(){
      console.log('儿子被点了');
    }
  },
};
</script>

<style lang="scss" scoped>

</style>